import { EventDispatcher, Event } from "../../../flash/events";

type int = number;
//class Dispatcher

export class Dispatcher {
  public static addEventListener(
    arg1: string,
    arg2: Function,
    arg3: Boolean = false,
    arg4: int = 0,
    arg5: Boolean = false
  ): void {
    Dispatcher.dispatcher.addEventListener(arg1, arg2, arg3, arg4, arg5);
    return;
  }

  public static removeEventListener(
    arg1: string,
    arg2: Function,
    arg3: Boolean = false
  ): void {
    Dispatcher.dispatcher.removeEventListener(arg1, arg2, arg3);
    return;
  }

  public static dispatchEvent(arg1: Event /* flash.events.Event */) {
    return Dispatcher.dispatcher.dispatchEvent(arg1);
  }

  public static hasEventListener(arg1: string): Boolean {
    return Dispatcher.dispatcher.hasEventListener(arg1);
  }

  private static /* var */ dispatcher: EventDispatcher /* flash.events.IEventDispatcher */ = new EventDispatcher /* flash.events.EventDispatcher */();
}
